home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000105_icon-group-sender _Thu Jul 27 07:29:09 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Thu, 27 Jul 1995 12:35:53 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 27 Jul 1995 07:29:09 GMT
  4. From: "Le Baron O. Ferguson" <ferguson@math.ucr.edu>
  5. Message-Id: <3v7f85$l1a@galaxy.ucr.edu>
  6. Organization: University of California, Riverside
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: snobol4 question
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. First I thank all the nice people who responded to my query about the demise
  12. of snobol and offered to answer my question.  I am glad it is not dead and
  13. this is the proper forum for it.
  14.  
  15. My problem is that I am using snobol4 to send control codes (among other things)
  16. to a printer.  I assign to the variable OUTPUT.  The output of the program
  17. is directed to the printer by /o=lpt2: on the command line.  The problem is
  18. that the assignment to OUTPUT causes a newline to also be sent.  I can program
  19. around this but it is aukward.  In PASCAL we have WRITELN and WRITE, and the
  20. latter does not append a newline automatically.  In C, printf simply does not
  21. send a newline unless you tell it to do so.  Is there a corresponding mechanism
  22. in snobol4?
  23.  
  24. I hope I am not wasting anyone's time.  I looked for this in the "green" book
  25. and also the extensive documentation with snobol4.  If there is a FAC I should
  26. read please just point me in its direction.
  27.  
  28. Tnanks in advance.
  29.  
  30. -- 
  31. ============================================================================
  32.     Professor Le Baron O. Ferguson          Office: Sproul 2219
  33.     Department of Mathematics                       (909) 787-5003
  34.     University of California                        ferguson@math.ucr.edu
  35.     Riverside CA  92521                     FAX   : (909) 787-7314
  36.  
  37. The greatest failing of the human race is its inability to understand
  38. the exponential function. Anonymous.
  39. ============================================================================
  40.  
  41.  
  42.